package com.zone.mybatis.mapping;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author: zongzi
 * @description: TODO
 * @date: 2023/12/18
 */
@Data
@NoArgsConstructor
public class MappedStatement {
    private String namespace;

    private String id;

    /**
     * MappedStatementId = namespace.id
     */
    private String msId;

    private SqlCommandType sqlCommandType;

    private BoundSql boundSql;

    public MappedStatement(String namespace, String id, String msId, SqlCommandType sqlCommandType, BoundSql boundSql) {
        this.namespace = namespace;
        this.id = id;
        this.msId = msId;
        this.sqlCommandType = sqlCommandType;
        this.boundSql = boundSql;
    }
}
